[RyuJIT Wasm] Disable genCreateAddrMode on Wasm#122897
Conversation
8e60ece to
9bea1a2
Compare
There was a problem hiding this comment.
Pull request overview
This PR implements the gtMarkAddrMode function for the WebAssembly (WASM) target, replacing a previous "Not Yet Implemented" (NYI) placeholder. This function is responsible for calculating the execution and size costs of address modes during JIT compilation.
- Adds cost calculation for base and index components of addressing modes
- Computes the size cost of constant offsets using SLEB128 encoding
- Enables address mode optimization for WebAssembly target
|
cc @dotnet/jit-contrib |
|
We probably also want to override the default |
|
Should I update the create as well, and then tweak this so that it asserts that there's no idx? |
@kg it seems that inside |
|
Although, I am not sure RISC-V and WASM have the same rules for the offset (it should never be negative for WASM, right?) |
The WASM rules are that:
|
Yeah, that was my first reaction as well, I thought we started optimizing along the way 🙂 so |
Done, thanks all |
Co-authored-by: SingleAccretion <62474226+SingleAccretion@users.noreply.github.com>
|
/ba-g known ios/osx device flakiness |
Addresses a superpmi failure category